<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增供货合同实体')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-providecontract-add">
            <!--<div class="form-group">    -->
                <!--<label class="col-sm-3 control-label">供应商ID：</label>-->
                <!--<div class="col-sm-8">-->
                    <!--&lt;!&ndash;<input name="supplierId" class="form-control" type="text">&ndash;&gt;-->
                    <!--<select name="supplierId" class="form-control m-b" id="supplierId" >-->
                        <!--<option th:each="supplier : ${suppliers}" th:text="${supplier.supplierName}" th:value="${supplier.supplierId}"></option>-->
                    <!--</select>-->
                <!--</div>-->
            <!--</div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购单位ID：</label>
                <div class="col-sm-8">
                    <!--<input name="purchasingUnitId" class="form-control" type="text">-->
                    <select name="purchasingUnitId" class="form-control m-b" id="purchasingUnitId" >
                        <option th:each="purchasingunit : ${sysPurchasingunits}" th:text="${purchasingunit.unitName}" th:value="${purchasingunit.purchasingUnitId}"></option>
                    </select>
                </div>
            </div>
            <!--<div class="form-group">    -->
                <!--<label class="col-sm-3 control-label">合同编号：</label>-->
                <!--<div class="col-sm-8">-->
                    <!--<input name="contractNumber" class="form-control" type="text">-->
                <!--</div>-->
            <!--</div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">供方：</label>
                <div class="col-sm-8">
                    <input name="provider" class="form-control" th:value="${supplier.supplierName}" readonly type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">供方授权公司：</label>
                <div class="col-sm-8">
                    <input name="providerCompany" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">需方：</label>
                <div class="col-sm-8">
                    <input name="demander" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">需方主管部门：</label>
                <div class="col-sm-8">
                    <input name="demanderCompany" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">提货日期：</label>
                <div class="col-sm-8">
                    <input name="takeGoodDate" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">异议截止日期：</label>
                <div class="col-sm-8">
                    <input name="dissentEndDate" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">验收人：</label>
                <div class="col-sm-8">
                    <input name="checkPerson" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开户行名称：</label>
                <div class="col-sm-8">
                    <input name="blankName" class="form-control" type="text" th:value="${supplier.blankName}" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开户行账号：</label>
                <div class="col-sm-8">
                    <input name="blankAccount" class="form-control" type="text" th:value="${supplier.blankAccount}" readonly>
                </div>
            </div>
            <!--<div class="form-group">    -->
                <!--<label class="col-sm-3 control-label">合同使用状态：</label>-->
                <!--<div class="col-sm-8">-->
                    <!--<div class="radio-box">-->
                        <!--<div class="radio">-->
                            <!--<label><input type="radio" name="status" value="1">正常</label>-->
                        <!--</div>-->
                        <!--<div class="radio">-->
                            <!--<label><input type="radio" name="status" value="0">异常</label>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;<input type="radio" name="status" value="1">&ndash;&gt;-->
                        <!--&lt;!&ndash;<label th:for="status" th:text="正常"></label>&ndash;&gt;-->
                        <!--&lt;!&ndash;<input type="radio" name="status" value="0">&ndash;&gt;-->
                        <!--&lt;!&ndash;<label th:for="status" th:text="异常"></label>&ndash;&gt;-->
                    <!--</div>-->
                    <!--&lt;!&ndash;<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>&ndash;&gt;-->
                <!--</div>-->
            <!--</div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/providecontract"
        $("#form-providecontract-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-providecontract-add').serialize());
            }
        }
    </script>
</body>
</html>